<?php
return array(

	/***********************************附加设置*****************************/
    'LOAD_EXT_CONFIG'       =>  'db',         	//加载网站设置文件
	'SHOW_ERROR_MSG' 		=> 	FALSE,			//开启ERROR信息
	'SHOW_PAGE_TRACE' 		=> 	FALSE,			//开启Trace信息

    /**********************************SESSION设置******************************/
    'SESSION_OPTIONS'       =>  array(
        'name'              =>  'MIDIADMIN',                 //设置session名
        'expire'            =>  24*3600*1,                   //SESSION保存1天
        'use_trans_sid'     =>  1,                            //跨页传递
        'use_only_cookies'  =>  0,                            //是否只开启基于cookies的session的会话方式
    ),

    /**********************************公钥私钥存放地址设置******************************/
    'RSA_PRIVATE_KEY'       =>  './keys/rsa_private_key.pem',
    'RSA_PUBLIC_KEY'       =>  './keys/rsa_public_key.pem',

    /*********************************Jpush设置******************************/
 //    'JPUSH_USER' => array('app_key'=>'1718fd2ba36c4ef424fe35d0','master_secret'=>'846a7f41df25fe377543be3c','url'=>'https://api.jpush.cn/v3/push'),

	// 'JPUSH_EXAMINER' => array('app_key'=>'793bd1014aa39faaf040a0d3','master_secret'=>'845a505d26ca5090cb87d8f7','url'=>'https://api.jpush.cn/v3/push'),

    'JPUSH_USER' => array('app_key'=>'28cc17beee18d0228a147c0f','master_secret'=>'d5d394ebb7e3af861ade1fba','url'=>'https://api.jpush.cn/v3/push'),

    'JPUSH_EXAMINER' => array('app_key'=>'828c616160c1f23f9cde3873','master_secret'=>'31ba0bd8df6296891c808671','url'=>'https://api.jpush.cn/v3/push'),

    /*********************************常量设置******************************/
	'APP_NAME' 				=>	'迷笛音乐考级',
	'AES_KEY' 				=> 	'5b7272aeab0b95234115fa3958403a17',
	'APP_VERSION'			=>	'1.0',
    'DOCUMENT_ROOT'           =>  '/',
    'DOCUMENT_UPLOAD'           =>  '/Upload/',
    'DOMAIN_NAME'           =>  'http://xuancode.com/midi',
    'WEB_NAME'              => 'http://midi.xuancode.com',

    /***********************************URL*************************************/
    'URL_MODEL'             =>  1,                            // 为了兼容性更好而设置成1 如果确认服务器开启了mod_rewrite 请设置为 2
    'URL_CASE_INSENSITIVE'  =>  false,                      // 区分url大小写
    /******************************微信扫描支付*********************************/
    'WEB_WEIXINPAY_CONFIG'  => [
        'notify_url'    =>   'http://xuancode.com/midi/index.php/Api/WxShaoMa/wxNotifyUrlShaoMa',
    ],

    /******************************支付宝web支付配置****************************************/
    'WEB_ALIPAY_CONFIG' =>  array (
        //应用ID,您的APPID。
        'app_id' => "2016090800466379",

        //商户私钥
       'merchant_private_key' => "MIIEogIBAAKCAQEAuUpjPZ2LRBvU/bqac4dpgJwmC7tGTLjgMTvGeDgUxwSPWBoW0S+O0s7bVf7MAf3oCuLeXLk9o27SA1qcoH3OoCsulBZSUa64/0rJ9VrhaX4qV/euupzH1FcwwzxLz4I7lN53OXs1f8nWKl16wlvx753QnahSBSR0lnRN2gF6N2+mx+HzLv/+RN4VEWkJn0/x80UwNiHQv4O5cJHFHeJBZGiEJUjtQJV39y6Ym3nF6gjVGvYUbM7eIDEGFVd5EuXwQNEgc/VFQDHTRuG+yJ1Gn/vUH7IICudDNCIdMFZX9EfGyCz3UxnEMcEn3oaZ5EPMyjRfDjQUiTl6ZiCh08z2cwIDAQABAoIBADpduE0cZ1YY/kq+kRB7QzyD82gWodphEh3wGmCcKc9XHGBAN5fFR1QYXPcFv/WQqZtkQ28p2sS0j+sGi/fyKThC4fU74spgI14njN6Atiio2WXEW4HlCP1WScH2KFtBRstqGFw+92c9iPznXVgD5n34VFKVRuDfzunl0PAvLvRu6fyMphyMQcCtv6jKtYUkkwce2eml/G64h23ZH4SABgBBsSP8ECytJm6fuX8ifC9e2pQ3RqwsZf2pkclrifJe1e6VAbBtsnUdqnQJsADsDs+MfDUcrg4IGJAQGEk+EUzyNtK3KqR2nEbzHw6NBUERc7WDaPugJG1ULsEEnW4nTIECgYEA3PoFgQCqCCzdLlCzPriHSxT1T7o8mvHTFKO7M/sMGDF7HdOmCNLIql+n4TIXTrWqPa9WFkkhxZgzu8H1Z98xa8iLVZT860woNsbo5PObOgBq8X+GiK8VMGobugAh1x7XygAe9HZ1LLkZ6S+Cj+tDvdTGIWV4KY3TJlU6xBHJNRECgYEA1qhtjQBTGvyUURHUt09rcjGrxy4rRepl6lBUC4kfisOfW29iDzoY9FWggicELd5exAZc2CaD2Vx+Q7EERrMgAMG/XZQHJZZizW/MwOYreJBYvOhhbRI7pUOkkQEzukk3ZLzFLWz4tXYuPSAPQGkeWylTeVfeF/QZvZsZX4i240MCgYBrVYJA4+qzJ9+TdJ1sFMOao6Z4QHTZqiamOtVebU21nqs3lKtsU74mi2oHB4ass67qYXVGQ+WEjeZrB85E0vO1b+bF/iVPwWEzIjDTrMQ0Symm/hOB5tE6//9RvGizjgaw1pgylCtcOtisHGilsVfpKCXI6PmR7ZKnZvSxchYykQKBgHuiqO6EmFk7z2VeQsmOKdGtAEaJtgzf8/FgcPfv88Xl5HwyjCU/Di50vy0XsdWFdcmr7H/mtxxTpLnyVAcwlqc48LLCVtd0ZdXzpdgY+kLHyQSNR8gdr1MBweBu889A6nHQNDV0xU8nEXzNYVt08DILfHOwg1ACnWzSz2tx//ynAoGAXsgiIeAXf0bxCgrdq84g4fj+d1N7QlM3d1aZxmQUjHTZFzlb2GtG/2URK6uoEiyZikzbxI3q5u2WNicS7306mDi5wi1oqme3KU5i34oq7HMlxgaCD6Yh+yHHOdLfz7HX9e1UhQOfLBco6eItZNP8BQGdp/56K0+QY8+3jWfcdbA=",
        // 'merchant_private_key' => file_get_contents("./Key/merchant_private_key.txt"),

        //异步通知地址
        'notify_url' => "http://xuancode.com/midi/index.php/Api/AliPayWeb/notify_url",

        //同步跳转
        'return_url' => "http://xuancode.com/midi/index.php/Api/AliPayWeb/return_url",

        //编码格式
        'charset' => "UTF-8",

        //签名方式
        'sign_type'=>"RSA2",

        //支付宝网关
		// 'gatewayUrl' => "https://openapi.alipay.com/gateway.do",//真实环境
       'gatewayUrl' => "https://openapi.alipaydev.com/gateway.do",//沙箱测试环境

        //支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
       'alipay_public_key' => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApyHx2z2341tTOzIeg9OoHcoT3qRSZrDXgRLHdPrV4MRNAShkgRxy0iVyD16qD+U2RqJq39gLGzaqMI5kDrkPjwiwDSj+i9+mBWpaUFWp+UCnlNbB/utc6lFIlV5WwQ+DzaBIpDMcGUBDHFllSKGBR119GRwfBT23bVXThSrK8+4OZJUKbgPmn3lFrl+hq/hPxnPE2GTUvLdjRXNFy3zNhxy8IgUG+6weJOHodteFT1NW9/WWDYuf1+6WNHMSQabVzxBsFKEktlGKemcN55MDd2edspMVmhHroZLRoR1L332C7woRbvlTo+L+dpMZeW7b6vrOcZHFd35R+P1lbk0CqwIDAQAB",
        // 'alipay_public_key' => file_get_contents('./Key/alipay_public_key.txt'),
    ),

    /******************************微信统一下单*********************************/
    'WEIXINPAY_CONFIG'       => array(
        'APPID'              => 'wxee179977f8060101', // 微信支付APPID
        'MCHID'              => '1285432901', // 微信支付MCHID 商户收款账号
        'KEY'                => 'af7f67ba1f1a257cecbf5c0ac43bb40f', // 微信支付KEY
        'APPSECRET'          => 'ecdd8a072663470a3a9b8402b942367d',  //公众帐号secert
        'goods_notify'         => 'http://xuancode.com/midi/index.php/Api/Weixinpay/goods_notify', // 异步通知,接收支付状态的连接
        'exam_notify'         => 'http://xuancode.com/midi/index.php/Api/Weixinpay/exam_notify', // 异步通知,接收支付状态的连接
        'examorg_notify'         => 'http://xuancode.com/midi/index.php/Api/Weixinpay/examorg_notify', // 异步通知,接收支付状态的连接
        'cert_notify'         => 'http://xuancode.com/midi/index.php/Api/Weixinpay/cert_notify', // 异步通知,接收支付状态的连接
        'RETURN_URL'         => 'http://xuancode.com/midi/tpall/index.php/Api/Weixinpay/notify', // 返回指定界面,接收支付状态的连接
    ),

    /*============================支付宝配置============================*/
    'ALIPAY_CONFIG'          => array(
        // partner 从支付宝商户版个人中心获取
        'partner'            => '2088021819496163',
        // email 从支付宝商户版个人中心获取
        'seller_id'       => 'appleid@midifestival.com',
        // 异步接收支付状态通知的链接
        'goods_notify'         => 'http://xuancode.com/midi/index.php/Api/Alipay/goods_notify',
        // 异步接收支付状态通知的链接
        'exam_notify'         => 'http://xuancode.com/midi/index.php/Api/Alipay/exam_notify',
        // 异步接收支付状态通知的链接
        'examorg_notify'         => 'http://xuancode.com/midi/index.php/Api/Alipay/examorg_notify',
        // 异步接收支付状态通知的链接
        'cert_notify'         => 'http://xuancode.com/midi/index.php/Api/Alipay/cert_notify',
        // 页面跳转 同步通知 页面路径 支付宝处理完请求后,当前页面自 动跳转到商户网站里指定页面的 http 路径。 (扫码支付专用)
        'return_url'         => 'http://xuancode.com/midi/index.php/Api/Alipay/alipay_return',
        // 商品展示网址,收银台页面上,商品展示的超链接。 (扫码支付专用)
        // 'show_url'           => 'http://baijunyao.com/User/Order/index',
        // 异步通知接口
        'service'            => 'mobile.securitypay.pay',
        // 支付方式(固定)
        'payment_type'            => '1',
        // 编码(固定)
        '_input_charset'            => 'utf-8',
        // 时间
        'it_b_pay'            => '1m',
        // 私钥
        'private_key'            => 'MIICWwIBAAKBgQDNhY/Sff5DzIzJhIQGcyj1qxO/T45DzfUaBZD1R9aIk3ji6N7yn+T4KFwk1Ry9wsFnDd9yymyKhfWU/dbNCEPX/nV3a8P2/yf9+k4NxaJZ9/lyGwPynmomdSS1f07LsJuP3ezIzZS21qx7UgGZ6FTAaIpDnIXz5NUkG0z+fxk91wIDAQABAoGANKPrDIz83Ty9KrhoYIaKjTH+Ytfrpm5QQxP95vU5e83Z/rSKtjZCHVWpFD4JmIkTpGOnQe2bE3fwSPMjW2ysg2aRYR8gzUEq7C86FFxKQBE/RjfpDUzEEqHUYiMvCMZo6gw5lMQwwzWo9i2BypSnb9Qntj32h/KJlVNdyhDrB+ECQQDze8wvR/XTSJ2KbkhoR9PVuGaZ6+db4M+S7r0tbFJ7jc/xSrkiql3ZzIN8BtXBQtggdsC1MUnLtHeGETEXmrcfAkEA2BYxUEf2htstZ9FRydao+Wwm4Gwt8Wlp052Vn43sc2dbQG03oNOaQTnzSLJS1RTUARNSgKaIOZ53AfRv78I6SQJAY7k+pdbZTlIdhEcrDNruXkiKbVx7g9wN6GYzwVjuZ4BrvK4YKaSRj9T9vVynS+Ju1s0MnKm1SeN+WMDN1JcfjQJAKWSG6cP/O3H8zqhQLIPMNos7Hz5ZxqbUuM60/K1pH+oqlrrVLx+Zquj463INX/fvbI1Q/ofoDHGIhn1We+0O0QJAYe5vg8lluu/Gpy/J0yknAROeptMvMDM/xyhNfkLOol17MKht5eKIvWjCpz/T3RwFpXX0lFQGpwhGO2YXAtilxw==',
        // 支付宝公钥
        'alipay_public_key'            => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB',
        // 签名方式
        'sign_type'            => strtoupper('RSA'),
        // ca证书路径地址，用于curl中ssl校验
        // 请保证cacert.pem文件在当前文件夹目录中
        'cacert'            => '/cacert.pem',
        //访问模式,根据自己的服务器是否支持ssl访问，若支持请选择https；若不支持请选择http
        'transport'            => 'http',
    ),

    /*阿里云市场API设置*/
    'ALIAPI_CONFIG'          => array(
        'appcode'            => '48aaa66e4f3f4283a5c21fce6adc2079', // Appcode
    ),

    /*****************************阿里大鱼短信配置******************************/
    'ALIDAYU_CONFIG'          => array(
        //阿里大鱼appkey
        'appkey' => '23596848',
        //阿里大鱼secretKey
        'secretKey' => '3b4b5bb467226deee85aedffbf2a665c',
        //extend    String  可选  123456
        'extend' => '123456',
        //sms_type  String  必须  normal
        'smsType' => 'normal',
        //sms_free_sign_name    String  必须  阿里大于
        'smsFreeSignName' => '迷笛考级',
        //sms_template_code String  必须  SMS_585014
        'smsTemplateCode' => 'SMS_41780301',
    ),

    /*****************************Qcloud配置******************************/
    'QCLOUD_CONFIG'          => array(
        //SecretId
        'SecretId' => 'AKIDEMK8lNE38B5oMiQusfGIkATbXHrFaTJy',
        //SecretKey
        'SecretKey' => 'f9Vggy86vYzEH8nGyWL2Yv67xb3LQJ1X',
        //RequestMethod
        'RequestMethod' => 'GET',
        //区域    bj（北京）
        'DefaultRegion' => 'bj',
    ),

);